document.ready(function() {
});

function showFloat(name, pic, phone, code) {
    setHtml('clientname', name);
    setHtml('clientphone', phone);
    setValue('phone', phone);
    getItem('clienthead').src = pic;
    getItem('clientcode').src = code;

    setDisplay('maskFloatDiv', '');
    document.body.style.overflow = 'hidden';
}

function closeFloat() {
    setDisplay('maskFloatDiv', 'none');
    document.body.style.overflow = 'visible';
}

function call(phone) {
    toUrl('tel:' + phone);
}

function callPhone() {
    toUrl('tel:' + getValue('phone'));
}

function open2Code() {
    setDisplay('codeMaskDiv', '');
    document.body.style.overflow = "hidden";
}

function close2Code() {
    setDisplay('codeMaskDiv', 'none');
    document.body.style.overflow = "visible";
}

function openPackage() {
    toUrl('index.php?m=customer&c=package');
}